Hack xm block-detach to remove tap disks as well as vbds.
authorEwan Mellor <ewan@xensource.com>
Wed, 13 Dec 2006 20:43:47 +0000 (20:43 +0000)
committerEwan Mellor <ewan@xensource.com>
Wed, 13 Dec 2006 20:43:47 +0000 (20:43 +0000)
This isn't very pretty -- a better solution would be nice.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/main.py

index 981c01f1e9e044fef100855e748b8005884de882..189347fdc410b6504719d83510b2da5a877f0f92 100644 (file)
@@ -1510,6 +1510,7 @@ def detach(args, command, deviceClass):
 
 def xm_block_detach(args):
     detach(args, 'block-detach', 'vbd')
+    detach(args, 'block-detach', 'tap')
 
 
 def xm_network_detach(args):